<?php

define('CELL_PER_ROW', 3);
define('COOKIE_EXP_TIME',time()+3600*24);

class dbconfig {

    // datebase configuration parameters
    private $dbHost = "localhost";
    private $dbName = "project";
    private $dbUsername = "3d_admin";
    private $dbPwd = "hedspi";

    // methods to retreive database information
    function get_dbdsn() {
        return "pgsql:host=" . $this->dbHost . ";dbname=" . $this->dbName;
    }

    function get_dbhost() {
        return $this->dbHost;
    }

    function get_dbname() {
        return $this->dbName;
    }

    function get_dbusername() {
        return $this->dbUsername;
    }

    function get_dbpwd() {
        return $this->dbPwd;
    }
}

?>